Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize loops with negative upper bounds #2573

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

annagrin
Copy link
Collaborator

@annagrin annagrin commented Feb 2, 2025

Description

Normalize loops with negative upper boundaries

Example of a loop that was not previously normalized and subsequently not unrolled

%1 = cc.loop while ((%arg0 = %c0_i32) -> (i32)) {
%2 = arith.cmpi slt, %arg0, %c-1_i32 : i32
      cc.condition %2(%arg0 : i32)
} do {
...

Towards: #2458

Copy link

github-actions bot commented Feb 2, 2025

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Feb 2, 2025
@schweitzpgi
Copy link
Collaborator

The description is missing the step expression, which is a critical bit of information here.

Copy link
Collaborator

@schweitzpgi schweitzpgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, Anna.

@annagrin annagrin merged commit 1ac1fab into NVIDIA:main Feb 3, 2025
213 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants